﻿using K9Nano.MultiTenancy;
using K9Nano.Share.Collections;

namespace K9Nano.Configuration.Startup
{
    public class MultiTenancyConfig : IMultiTenancyConfig
    {
        public bool IsEnabled { get; set; }
        public ITypeList<ITenantResolver> Resolvers { get; }
        public string TenantIdResolveKey { get; set; }
        public bool IgnoreFeatureCheckForHostUsers { get; set; }

        public MultiTenancyConfig()
        {
            IsEnabled = true;
            Resolvers = new TypeList<ITenantResolver>();
            TenantIdResolveKey = "K9TenantId";
            IgnoreFeatureCheckForHostUsers = true;
        }
    }
}